﻿//-----------------------------------------------------------------------
// <copyright file="MockCharacter.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System;
using GateShift.Common.Repository;
using GateShift.Common.Repository.Interfaces.DataInterfaces;

#endregion

namespace GateShift.Testing.Mockup.DataLayer
{
    /// <summary>
    /// Mock character for testing invalid repository objects
    /// </summary>
    public class MockCharacter : ICharacterData
    {
        private readonly Guid _characterID = Guid.NewGuid();

        /// <summary>
        /// Gets or sets the name of the character
        /// </summary>
        public string CharacterName { get; set; }

        /// <summary>
        /// Gets or sets the character's base Insight
        /// </summary>
        public byte BaseInsight { get; set; }

        /// <summary>
        /// Gets or sets the character's base Intellect
        /// </summary>
        public byte BaseIntellect { get; set; }

        /// <summary>
        /// Gets or sets the character's base Accuracy
        /// </summary>
        public byte BaseAccuracy { get; set; }

        /// <summary>
        /// Gets or sets the character's base Will
        /// </summary>
        public byte BaseWill { get; set; }

        /// <summary>
        /// Gets or sets the character's base Force
        /// </summary>
        public byte BaseForce { get; set; }

        /// <summary>
        /// Gets or sets the character's base Energy
        /// </summary>
        public byte BaseEnergy { get; set; }

        /// <summary>
        /// Gets or sets the character's base Strength
        /// </summary>
        public byte BaseStrength { get; set; }

        /// <summary>
        /// Gets or sets the character's base Endurance
        /// </summary>
        public byte BaseEndurance { get; set; }

        /// <summary>
        /// Gets or sets the character's base Agility
        /// </summary>
        public byte BaseAgility { get; set; }

        /// <summary>
        /// Gets or sets the character's total credit value
        /// </summary>
        public long Money { get; set; }

        /// <summary>
        /// Gets or sets the identity of the associated race
        /// </summary>
        public Identity? RaceID { get; set; }

        /// <summary>
        /// Gets or sets the identity of the associated account
        /// </summary>
        public Identity? AccountID { get; set; }

        /// <summary>
        /// Gets a value indicating whether or not this instance has been changed
        /// </summary>
        public bool IsDirty
        {
            get
            {
                return false;
            }
        }

        /// <summary>
        /// Gets a value indicating whether or not this instance is a new entity
        /// </summary>
        public bool IsNew
        {
            get
            {
                return false;
            }
        }

        /// <summary>
        /// Gets a value indicating whether or not this instance has been deleted
        /// </summary>
        public bool IsDeleted
        {
            get
            {
                return false;
            }
        }

        /// <summary>
        /// Gets the Identifier for the instance
        /// </summary>
        public Identity ID
        {
            get
            {
                return new Identity(_characterID);
            }
        }
    }
}